package com.example.demo.entity;

import java.util.List;

public  class  UserDto {
    private List<Privilege> privilege;
    private  Integer id; //用户编号
    private  String username; //用户名称
    private  String password; //密码
    private  Integer valid; //是否合法

    public  Integer getId() {
        return  id;
    }

    public  void  setId(Integer id) {
        this .id = id;
    }

    public  String getUsername() {
        return  username;
    }

    public  void  setUsername(String username) {
        this .username = username;
    }

    public  String getPassword() {
        return  password;
    }

    public  void  setPassword(String password) {
        this .password = password;
    }

    public  Integer getValid() {
        return  valid;
    }

    public  void  setValid(Integer valid) {
        this .valid = valid;
    }

    public List<Privilege> getPrivilege() {
        return privilege;
    }

    public void setPrivilege(List<Privilege> privilege) {
        this.privilege = privilege;
    }

    @Override
    public String toString() {
        return "UserDto{" +
                "privilege=" + privilege +
                ", id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", valid=" + valid +
                '}';
    }
}
